package com.etoak.commons;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 把以前的xml配置的项  封装成两个属性
 */
@Component
@Data
@ConfigurationProperties(prefix = "pic")//读取application文件中以pic开头的配置项
public class PicProperties {
    private String location;
    private String mapping;
}
